<?php
/**
 * User: Jerry
 * Date: 2017/7/24
 * Time: 17:04
 */

namespace SDXApi\Model;


use Think\Model;

/**
 * Class HomeTemplateTakeModel
 * @author Jerry
 * @package SDXApi\Model
 */
class HomeTemplateTakeModel extends Model
{
    /**
     * @var string
     */
    protected $tableName = 'home_template_take';


    /**
     * @author Jerry
     * @param int $id
     * @return mixed
     */
    public function findTakeByTemplateId($id = 0)
    {
        $where = array(
            'template_id'   =>  $id,
        );

        return $this->where($where)->select();
    }
}